import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import './style/index.css'
import echarts from 'echarts'
import axios from 'axios'
import request from '@/utils/request.js'
import SIdentify from './components/identify'
import BaiduMap from 'vue-baidu-map/components/map/Map.vue'
import BmMarker from 'vue-baidu-map/components/overlays/Marker'
import BmOverlay from 'vue-baidu-map/components/overlays/Overlay'
import bminfowindow from 'vue-baidu-map/components/overlays/InfoWindow'
import BDmap from '@/components/BDmap'
Vue.component('BaiduMap', BaiduMap)
Vue.component('BmMarker', BmMarker)
Vue.component('BmOverlay', BmOverlay)
Vue.component('Bminfowindow', bminfowindow)
Vue.component('BDmap', BDmap)
Vue.prototype.request = request
Vue.prototype.$echarts = echarts
Vue.config.productionTip = false
Vue.prototype.$axios = axios
Vue.use(ElementUI)
Vue.use(SIdentify)
new Vue({
  router,
  store,
  render: h => h(App),
  mounted() {
    this.$store.commit('addrouters')
  },
}).$mount('#app')
